<%@ taglib prefix="stripes" uri="http://stripes.sourceforge.net/stripes.tld" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<c:set var="home" value="${pageContext.request.contextPath}"/>

<stripes:layout-render name="/WEB-INF/jsp/layouts/default.jsp" title="Employee List">

	<stripes:layout-component name="content">
		<table>
			<c:forEach items="${actionBean.employees}" var="employee">
				<tr>
					<td>
						<stripes:link beanclass="net.learntechnology.examples.stripes.EmployeeAction">
							<stripes:param name="employee.id" value="${employee.id}"/>
							${employee.id}
						</stripes:link>
					</td>
					<td>
						${employee.firstName}
					</td>
					<td>
						${employee.lastName}
					</td>
					<td>
						${employee.department.name}
					</td>
				</tr>
			</c:forEach>
		</table>
	</stripes:layout-component>
</stripes:layout-render>
